/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Abril_4.Ej_17_04_13_01;

import java.io.File;
import java.util.Scanner;
import static Metodos.MetodosMatrices.*;

/**
 *
 * @author vesprada
 */
public class uno {

    public static void main(String[] args) {
        File archivo = new File("uno.txt");
        int fil = 0, col = 0;
        try {
            Scanner lector = new Scanner(archivo);
            fil = Integer.parseInt(lector.nextLine().trim());
            System.out.println(fil+"aaa");
            col = Integer.valueOf(lector.nextLine().trim());
             System.out.println(col+"aaa");
            int[][] matriz = new int[fil][col];
            for (int f = 0; f < matriz.length; f++) {
                for (int c = 0; c < matriz[f].length; c++) {
                    while (lector.hasNext()) {
                        matriz[f][c] = Integer.parseInt(lector.next());
                        break;
                    }
                }
            }
            mostrarMatriz(matriz);

        } catch (Exception e) {
        }
        

    }
}
